<div ng-controller="SessionController"></div>
<div data-ng-init="isFavorite()">
	<br>
	<br>
	<br>
	<br>
	<h1 class="orangeHeader" style="padding-bottom:0px">{{conferenceName}}</h1>
	<div class="field2" style="padding-bottom:0px">
	<div class="center">
		<p class="formLabel">Start time:</p> 
		<div class="lecture-data">{{conferenceStartTime.slice(0,10)}}</div> 
	</div>
	</div>
	<div class="field2">
	<div class="center">
		<p class="formLabel">End time:</p> 
		<div class="lecture-data">{{conferenceEndTime.slice(0,10)}}</div> 
	</div>
	</div>
	<br>
	<div class="formLabel" style="display:inline; font-weight:bolder;" ng-show="isEmployee()">Filter by:</div>
	<select id="lectures" name="lectures"
		type="text" ng-model="status" ng-change="changeStatus()"
		ng-show="isEmployee()">
		<option>All</option>
		<option>Approved</option>
		<option>Not approved</option>
		<option>Not seen</option>
	</select>
	<br>
	<br>
	<table class="table table-striped">
		<thead>
			<tr class="tableHeader">
				<th>Title</th>
				<th>Description</th>
				<th>Date</th>
				<th>Time</th>
				<th>Duration</th>
			</tr>
		</thead>
		<tbody>
			<tr ng-repeat="lecture in lectures| filter: isStatus ">
				<td class="font" style="width:33%; height:25px;"><a class="tableLink" href="#/conference/{{lecture.title}}">{{lecture.title}}</a></td>
				<td class="font"><span style="word-break: break-all;">{{lecture.description}}</span></td>
				<td class="font" style="width:20%;">{{lecture.date.slice(0,10)}}</td>
				<td class="font" style="width:20%;">{{lecture.time}}</td>
				<td class="font" style="width:20%;">{{lecture.length}} minutes</td>
			</tr>
		</tbody>
	</table>

	<button class="rightButton" style="display:inline" ng-click="addToFavourites()" ng-show = "favorite">Add
		to favourites</button>
	<button class="rightButton" style="display:inline" ng-show="isLecturer()" ng-controller="ManagerController"
		ng-click="createLecture()" ng-disabled="isDisabled()">Create lecture</button>
	<div class="fail" style="display:inline; font-size:16px;" ng-show="isDisabled()&&isLecturer()" ng-controller="ManagerController">
		{{conferenceName}} starts in less than 30 days so you cannot add lecture for it.
	</div>
</div>
<!-- 
private long id; 
	private String title;
	private String description;
	@ManyToOne
	private Conference conference;
	private int length;
	@Temporal(TemporalType.TIMESTAMP)
	private Date createDate;
	@Temporal(TemporalType.TIMESTAMP)
	private Date lastModified;
	private int status; //ama iskam ednuuuuum
	@ManyToOne
	private Lecturer lecturer;



	$scope.conferenceLocation = data.location;
				$scope.conferenceStartTime = data.startTime;
				$scope.conferenceEndTime = data.endTime;
				$scope.lectures = data.lectures;
 -->